/*21 Begin
#include <iostream>
#include <cmath>
using namespace std;
int main(int argc, char **argv[])
{
  double x1, y1, x2, y2, x3, y3, a, b, c, p, S;
  cout << "vvedite koordinati pervoy vershini x1 i y1: ";
  cin >> x1 >> y1;
  cout << "vvedite koordinati vtoroi vershini x2 i y2: ";
  cin >> x2 >> y2;
  cout << "vvedite koordinati tritei vershini x3 i y3: ";
  cin >> x3 >> y3;
  a = sqrt(pow((x2 - x1), 2.0) + pow((y2 - y1), 2.0));
  b = sqrt(pow((x3 - x2), 2.0) + pow((y3 - y2), 2.0));
  c = sqrt(pow((x1 - x3), 2.0) + pow((y1 - y3), 2.0));
  p = (a + b + c)/2;
  S = sqrt(p*(p - a)*(p - b)*(p - c));
  std::cout << "S = " << S <<endl;
  std::cout << "P = " << a + b + c <<endl;
  return 0;
}

22 begin
#include <iostream>
using namespace std;
int main(int argc, char **argv[])
{
  double A, B, C;
  cout << "vvedite A i B:  ";
  cin >> A >> B;
  C = A;
  A = B;
  B = C;
  cout << "A = " << A << "\n B = " << B <<endl;
  return 0;
}

21 integer
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    int t;
    cout<<"vvedite kol-vo sekund: ";
    cin>>t;
    t = t % 60;
    cout<<"kol-vo sekund proshedshee s posledney minuti: "<<t;
    return 0;
}

22 integer
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    int t;
    cout<<"vvedite kol-vo sekund: ";
    cin>>t;
    t = t % 3600;
    cout<<"kol-vo sekund proshedshee s poslednego chasa: "<<t;
    return 0;
}
21 boolean
#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
  int A;
  cin >> A;
  cout << ((((A/100)<((A/10)%10))&&((A/100)<(A%100)%10)&&(((A/10)%10)<(A%100)%10)));;
  return 0;
}

22 boolean
#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
  int A;
  cin >> A;
  cout << (((((A/100)<((A/10)%10))&&((A/100)<(A%100)%10)&&(((A/10)%10)<(A%100)%10)))||((((A/100)>((A/10)%10))&&((A/100)>(A%100)%10)&&(((A/10)%10)>(A%100)%10))));;
  return 0;
}*/
